package com.zoe.wan.android.example.fragment.home

import android.app.Application
import androidx.lifecycle.viewModelScope
import com.zoe.wan.android.example.repository.Repository
import com.zoe.wan.base.BaseViewModel
import kotlinx.coroutines.launch

class FragHomeViewModel(application: Application) : BaseViewModel(application) {

    init {
        getHomeList()
    }

    fun getHomeList() {
        viewModelScope.launch {
            val data = Repository.getHomeList("0")
        }
    }

}